// .container {
//   width: 100%;
//   height: 100%;
// }


.home {
  height: 100vh;
  display: flex;
  flex-direction: column;

  .top {
    height: 16.6667%; // 页面三分之一高度的顶部和卡片部分
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;

    h2 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: bold;
      color: #dd41b6;
    }

    p {
      margin: 4px 0 0 0;
      font-size: 1rem;
      color: #dd41b6;
    }
  }

  .cards {
    height: 16.6667%; // 页面三分之一高度
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;

    .card {
      flex: 1;
      margin: 0 10px;
      padding: 20px;
      text-align: center;
      background-color: #f397e5;
      border-radius: 10px;
      cursor: pointer;
      font-weight: bold;
      color: #1ca015;
      transition: transform 0.2s;

      &:hover {
        transform: translateY(-5px);
      }
    }
  }

  .todayPlan {
    flex: 1; // 剩余高度
    background-color: #fafafa;
    padding: 10px;
    display: flex; // 改成 flex 布局
    flex-direction: column; // 垂直排列
    color: #dd41b6;

    h3 {
      margin: 0 0 10px 0;
      font-size: 1.2rem;
      font-weight: bold;
    }

    .planContainer {
      flex: 1; // 占满剩余高度
      display: flex;
      flex-direction: column;
      gap: 10px;

      .planItem {
        flex: 1; // 每个 planItem 占满容器分配的空间
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        padding: 10px;
        display: flex;
        flex-direction: column;
      }
    }
  }

}